package com.yy.main.app.service.impl;

import com.yy.main.app.mapper.TKeywordMessageMapper;
import com.yy.main.app.service.IKeywordMessageService;
import com.yy.pojo.base.TKeywordMessage;
import com.yy.pojo.base.TKeywordMessageExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 关键字与消息的关联表，一个关键字可以包含多个图文消息，但却不可以包含多个文本消息 服务实现类
 * </p>
 *
 * @author 杨阳
 * @since 2017-09-20
 */
@Service("iKeywordMessageService")
public class KeywordMessageServiceImpl implements IKeywordMessageService {

    @Autowired
    private TKeywordMessageMapper tKeywordMessageMapper;


    @Override
    public Integer deleteByExample(TKeywordMessageExample example) {
        return tKeywordMessageMapper.deleteByExample(example);
    }

    @Override
    public int updateByExample(TKeywordMessage record, TKeywordMessageExample example) {
        return tKeywordMessageMapper.updateByExample(record, example);
    }

    @Override
    public List<TKeywordMessage> selectListByExample(TKeywordMessageExample example) {
        return tKeywordMessageMapper.selectByExample(example);
    }
}
